body {
  margin: 0;
  background: #000;
  color: #fff;
  cursor: default;
  user-select: none;
  overflow: hidden;
  font-family: monospace;
}

button {
  box-sizing: border-box;
  background: #333;
  color: #fff;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  outline: 0;
  border-radius: 4px;
  cursor: pointer;
}

button.primary {
  background: #393;
}

button:disabled {
  opacity: 0.5;
}

input[type="email"], input[type="password"], input[type="text"] {
  display: inline-block;
  vertical-align: middle;
  width: 220px;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0.5rem;
  outline: 0;
  margin-bottom: 0.5rem;
}

canvas {
  vertical-align: middle;
}

.dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
}

.dialog.open {
  display: block;
}

.dialog > form, .dialog > div {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 1rem;
}

.dialog > form .error {
  display: none;
  margin: 0.5rem 0 1rem;
  color: #933;
}

.dialog > form .spacer {
  margin: 1rem 0;
  background: #333;
  width: 100%;
  height: 1px;
}

.dialog > form > a {
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}

.dialog#location > div {
  width: calc(100vw - 6rem);
  pointer-events: none;
}

.dialog#location > div > img {
  width: 100%;
  height: calc(100vh - 10rem);
  object-fit: contain;
  margin-bottom: 0.825rem;
}

.dialog#location > div > div {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  opacity: 0.3;
}

#info > a {
  color: inherit;
}

#destinations > svg {
  position: absolute;
  top: 0;
  left: 0;
}

#destinations > svg > text {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

#enterVR {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%, 0);
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  opacity: 0.3;
  pointer-events: none;
  text-transform: uppercase;
}

#error {
  position: absolute;
  background: rgba(0, 0, 0, .5);
  padding: 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#github > svg {
  position: absolute;
  top: 0;
  right: 0;
}

#github > svg .octo-arm {
  transform-origin: 130px 106px;
}

@keyframes octocat-wave {
  0% {transform: rotate(0deg)}
  20% {transform: rotate(-25deg)}
  40% {transform: rotate(10deg)}
  60% {transform: rotate(-25deg)}
  80% {transform: rotate(10deg)}
  100% {transform: rotate(0deg)}
}

#github > svg:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

#renderer {
  width: 100vw;
  height: 100vh;
}

#session {
  position: absolute;
  display: flex;
  flex-direction: column;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px 0 0 4px;
  overflow: hidden;
}

#session > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

#session > div > canvas {
  width: 64px;
  height: 64px;
}

#session > div > button {
  width: 80px;
  margin: 0 1rem;
}

#session > div:first-child {
  box-sizing: border-box;
  padding: 0.25rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
}

#support.supported {
  color: #3f3;
}

#support.unsupported {
  color: #f33;
}
